Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632708 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/129 - Dice Game

README.md cody/swapnilsparsh/30DaysOfJavaScript/129 - Dice Game/README.md
161 Views
0 Comments
"# Dice-game"

style.css cody/swapnilsparsh/30DaysOfJavaScript/129 - Dice Game/style.css
82 Views
0 Comments
html, body {
--color-1: #a8e6cf;
--color-2: #dcedc1;
--color-3: #ffd3b6;
--color-4: #ffaaa5;
--color-5: #ff8b94;
margin: 0;
padding: 0;
Dice Game cody/swapnilsparsh/30DaysOfJavaScript/129 - Dice Game/index.html
265 Views
0 Comments
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>Dice Game</title>
</head>
<body>
<div class="container">
<h1 id="message">Player 1 Turn</h1>
script.js cody/swapnilsparsh/30DaysOfJavaScript/129 - Dice Game/script.js
144 Views
0 Comments
// Create variables for the game state
let player1Score = 0
let player2Score = 0
let player1Turn = true

// Create variables to store references to the necessary DOM nodes
const player1Dice = document.getElementById("player1Dice")
const player2Dice = document.getElementById("player2Dice")
Capture.PNG cody/swapnilsparsh/30DaysOfJavaScript/129 - Dice Game/Capture.PNG
68 Views
0 Comments
Media file